#define  _CRT_SECURE_NO_WARNINGS
#include "string.h"

using namespace std;

int main()
{
	jc::string s1("hello kivotos");
	cout << s1.size()<<endl;
	cout << s1.capacity()<<endl  ;
	//jc::string s2 = s1;
	//cout << s1.c_str() << endl;
	//cout << s2.c_str() << endl;

	//jc::string::iterator it = s2.begin();
	//while (it != s2.end())
	//{
	//	cout << *it << " ";
	//	it++;
	//}

	//s2[5] = '-';
	//cout << s2.c_str();

	//s2 += '!';
	//s2 += " hello world";
	//cout << s2.c_str();

	//s2.insert(6, "-----");
	//cout << s2.c_str();
	//s2.erase(5, 7);
	//cout << s2.c_str();

	//cout << s2.find('k') << endl;
	//cout << s2.find("vo") <<endl;

	//jc::string s3 = s2.substr(5, 7);
	//cout << s3.c_str();
	
	//jc::string s1("hello kivotos");
	//jc::string s2 = s1;

	//s2 = "xxxxxxxxxxxx";
	//cout << s2.c_str();

	return 0;
}